<?php
namespace decorator;

//具体组件类
class Person implements ComponentInterface
{
    private $_name;

    public function __construct($name)
    {
        echo "实例化了待装饰的组件~\n";
        $this->_name = $name;
    }

    public function show() 
    {
        echo "装扮的{$this->_name}\n";
    }
}